<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/util.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#L271'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#L286'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/lib.html'>lib</a>/util.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/lib.html'>lib</a>/util.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L271'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L286'><img class='icon' src='../icons/last.png' alt='[last]' /></a><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 lib/util.h'  /> */</em>
<hr />
<h2 class='header'><a href='../J/util.h.html' title='Multiple included from 114 places.'>INCLUDED FROM</a></h2>
<hr />
<h2 class='header'>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L271' title='Defined at 271.'>mc_propagate_error</a></li>
<li><a href='#L286' title='Defined at 286.'>is_exe</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='comment'>/** \file lib/util.h</em>
<a id='L2' name='L2'></a>   2 <em class='comment'> *  \brief Header: various utilities</em>
<a id='L3' name='L3'></a>   3 <em class='comment'> */</em>
<a id='L4' name='L4'></a>   4 
<a id='L5' name='L5'></a>   5 <em class='sharp'>#ifndef</em> <a href='../S/lib--util.h.html#L6' title='Defined at 6 in lib/util.h.'>MC_UTIL_H</a>
<a id='L6' name='L6'></a>   6 <em class='sharp'>#define</em> <a href='../S/lib--util.h.html#L5' title='Referred from 5 in lib/util.h.'>MC_UTIL_H</a>
<a id='L7' name='L7'></a>   7 
<a id='L8' name='L8'></a>   8 <em class='sharp'>#include</em> &lt;sys/types.h&gt;
<a id='L9' name='L9'></a>   9 <em class='sharp'>#include</em> &lt;sys/stat.h&gt;
<a id='L10' name='L10'></a>  10 <em class='sharp'>#include</em> &lt;inttypes.h&gt;           <em class='comment'>/* uintmax_t */</em>
<a id='L11' name='L11'></a>  11 <em class='sharp'>#include</em> &lt;unistd.h&gt;
<a id='L12' name='L12'></a>  12 
<a id='L13' name='L13'></a>  13 <em class='sharp'>#include</em> "<a href='lib--global.h.html'>lib/global.h</a>"         <em class='comment'>/* include &lt;glib.h&gt; */</em>
<a id='L14' name='L14'></a>  14 
<a id='L15' name='L15'></a>  15 <em class='sharp'>#include</em> "<a href='lib--vfs--vfs.h.html'>lib/vfs/vfs.h</a>"
<a id='L16' name='L16'></a>  16 
<a id='L17' name='L17'></a>  17 <em class='comment'>/*** typedefs(not structures) and defined constants **********************************************/</em>
<a id='L18' name='L18'></a>  18 
<a id='L19' name='L19'></a>  19 <em class='sharp'>#ifndef</em> <a href='../S/lib--util.h.html#L20' title='Defined at 20 in lib/util.h.'>MAXSYMLINKS</a>
<a id='L20' name='L20'></a>  20 <em class='sharp'>#define</em> <a href='../R/MAXSYMLINKS.html' title='Multiple referred from 2 places.'>MAXSYMLINKS</a> 32
<a id='L21' name='L21'></a>  21 <em class='sharp'>#endif</em>
<a id='L22' name='L22'></a>  22 
<a id='L23' name='L23'></a>  23 <em class='sharp'>#define</em> <a href='../R/MAX_SAVED_BOOKMARKS.html' title='Multiple referred from 5 places.'>MAX_SAVED_BOOKMARKS</a> 10
<a id='L24' name='L24'></a>  24 
<a id='L25' name='L25'></a>  25 <em class='sharp'>#define</em> <a href='../R/MC_PTR_FREE.html' title='Multiple referred from 106 places.'>MC_PTR_FREE</a>(<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>) <strong class='reserved'>do</strong> <em class='brace'>{</em> <a href='../Y/g_free.html' title='Multiple used in 1230 places.'>g_free</a> (<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>); (<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>) = <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a>; <em class='brace'>}</em> <strong class='reserved'>while</strong> (0)
<a id='L26' name='L26'></a>  26 
<a id='L27' name='L27'></a>  27 <em class='sharp'>#define</em> <a href='../R/mc_return_if_error.html' title='Multiple referred from 5 places.'>mc_return_if_error</a>(<a href='../Y/mcerror.html' title='Multiple used in 392 places.'>mcerror</a>) <strong class='reserved'>do</strong> <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/mcerror.html' title='Multiple used in 392 places.'>mcerror</a> != <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a> &amp;&amp; *<a href='../Y/mcerror.html' title='Multiple used in 392 places.'>mcerror</a> != <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a>) <strong class='reserved'>return</strong>; <em class='brace'>}</em> <strong class='reserved'>while</strong> (0)
<a id='L28' name='L28'></a>  28 <em class='sharp'>#define</em> <a href='../R/mc_return_val_if_error.html' title='Multiple referred from 42 places.'>mc_return_val_if_error</a>(<a href='../Y/mcerror.html' title='Multiple used in 392 places.'>mcerror</a>, mcvalue) <strong class='reserved'>do</strong> <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/mcerror.html' title='Multiple used in 392 places.'>mcerror</a> != <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a> &amp;&amp; *<a href='../Y/mcerror.html' title='Multiple used in 392 places.'>mcerror</a> != <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a>) <strong class='reserved'>return</strong> mcvalue; <em class='brace'>}</em> <strong class='reserved'>while</strong> (0)
<a id='L29' name='L29'></a>  29 
<a id='L30' name='L30'></a>  30 <em class='sharp'>#define</em> <a href='../R/whitespace.html' title='Multiple referred from 24 places.'>whitespace</a>(<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>) ((<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>) == ' ' || (<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>) == '\t')
<a id='L31' name='L31'></a>  31 <em class='sharp'>#define</em> <a href='../R/whiteness.html' title='Multiple referred from 7 places.'>whiteness</a>(<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>) (<a href='../S/lib--util.h.html#L30' title='Defined at 30 in lib/util.h.'>whitespace</a> (<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>) || (<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>) == '\n')
<a id='L32' name='L32'></a>  32 
<a id='L33' name='L33'></a>  33 <em class='sharp'>#define</em> <a href='../R/MC_PIPE_BUFSIZE.html' title='Multiple referred from 12 places.'>MC_PIPE_BUFSIZE</a> <a href='../S/lib--global.h.html#L108' title='Defined at 108 in lib/global.h.'>BUF_8K</a>
<a id='L34' name='L34'></a>  34 <em class='sharp'>#define</em> <a href='../R/MC_PIPE_STREAM_EOF.html' title='Multiple referred from 3 places.'>MC_PIPE_STREAM_EOF</a> 0
<a id='L35' name='L35'></a>  35 <em class='sharp'>#define</em> <a href='../R/MC_PIPE_STREAM_UNREAD.html' title='Multiple referred from 5 places.'>MC_PIPE_STREAM_UNREAD</a> -1
<a id='L36' name='L36'></a>  36 <em class='sharp'>#define</em> <a href='../S/lib--utilunix.c.html#L520' title='Referred from 520 in lib/utilunix.c.'>MC_PIPE_ERROR_CREATE_PIPE</a> -2
<a id='L37' name='L37'></a>  37 <em class='sharp'>#define</em> MC_PIPE_ERROR_PARSE_COMMAND -3
<a id='L38' name='L38'></a>  38 <em class='sharp'>#define</em> <a href='../S/lib--utilunix.c.html#L529' title='Referred from 529 in lib/utilunix.c.'>MC_PIPE_ERROR_CREATE_PIPE_STREAM</a> -4
<a id='L39' name='L39'></a>  39 <em class='sharp'>#define</em> <a href='../R/MC_PIPE_ERROR_READ.html' title='Multiple referred from 6 places.'>MC_PIPE_ERROR_READ</a> -5
<a id='L40' name='L40'></a>  40 
<a id='L41' name='L41'></a>  41 <em class='comment'>/* gnulib efa15594e17fc20827dba66414fb391e99905394</em>
<a id='L42' name='L42'></a>  42 <em class='comment'></em>
<a id='L43' name='L43'></a>  43 <em class='comment'> *_GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2.</em>
<a id='L44' name='L44'></a>  44 <em class='comment'> *  It returns</em>
<a id='L45' name='L45'></a>  45 <em class='comment'> *    1  if n1 &gt; n2</em>
<a id='L46' name='L46'></a>  46 <em class='comment'> *    0  if n1 == n2</em>
<a id='L47' name='L47'></a>  47 <em class='comment'> *    -1 if n1 &lt; n2</em>
<a id='L48' name='L48'></a>  48 <em class='comment'> *  The native code   (n1 &gt; n2 ? 1 : n1 &lt; n2 ? -1 : 0)  produces a conditional</em>
<a id='L49' name='L49'></a>  49 <em class='comment'> *  jump with nearly all GCC versions up to GCC 10.</em>
<a id='L50' name='L50'></a>  50 <em class='comment'> *  This variant      (n1 &lt; n2 ? -1 : n1 &gt; n2)  produces a conditional with many</em>
<a id='L51' name='L51'></a>  51 <em class='comment'> *  GCC versions up to GCC 9.</em>
<a id='L52' name='L52'></a>  52 <em class='comment'> *  The better code  (n1 &gt; n2) - (n1 &lt; n2)  from Hacker's Delight para 2-9</em>
<a id='L53' name='L53'></a>  53 <em class='comment'> *  avoids conditional jumps in all GCC versions &gt;= 3.4.</em>
<a id='L54' name='L54'></a>  54 <em class='comment'> */</em>
<a id='L55' name='L55'></a>  55 <em class='sharp'>#define</em> <a href='../R/_GL_CMP.html' title='Multiple referred from 4 places.'>_GL_CMP</a>(<a href='../Y/n1.html' title='Multiple used in 35 places.'>n1</a>, <a href='../Y/n2.html' title='Multiple used in 49 places.'>n2</a>) (((<a href='../Y/n1.html' title='Multiple used in 35 places.'>n1</a>) &gt; (<a href='../Y/n2.html' title='Multiple used in 49 places.'>n2</a>)) - ((<a href='../Y/n1.html' title='Multiple used in 35 places.'>n1</a>) &lt; (<a href='../Y/n2.html' title='Multiple used in 49 places.'>n2</a>)))
<a id='L56' name='L56'></a>  56 
<a id='L57' name='L57'></a>  57 <em class='comment'>/*** enums ***************************************************************************************/</em>
<a id='L58' name='L58'></a>  58 
<a id='L59' name='L59'></a>  59 <em class='comment'>/* Pathname canonicalization */</em>
<a id='L60' name='L60'></a>  60 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
<a id='L61' name='L61'></a>  61 <em class='brace'>{</em>
<a id='L62' name='L62'></a>  62     <a href='../R/CANON_PATH_JOINSLASHES.html' title='Multiple referred from 2 places.'>CANON_PATH_JOINSLASHES</a> = 1L &lt;&lt; 0,   <em class='comment'>/* Multiple '/'s are collapsed to a single '/'. */</em>
<a id='L63' name='L63'></a>  63     <a href='../R/CANON_PATH_REMSLASHDOTS.html' title='Multiple referred from 2 places.'>CANON_PATH_REMSLASHDOTS</a> = 1L &lt;&lt; 1,  <em class='comment'>/* Leading './'s, '/'s and trailing '/.'s are removed. */</em>
<a id='L64' name='L64'></a>  64     <a href='../R/CANON_PATH_REMDOUBLEDOTS.html' title='Multiple referred from 4 places.'>CANON_PATH_REMDOUBLEDOTS</a> = 1L &lt;&lt; 3, <em class='comment'>/* Non-leading '../'s and trailing '..'s are handled by removing */</em>
<a id='L65' name='L65'></a>  65     <a href='../R/CANON_PATH_GUARDUNC.html' title='Multiple referred from 2 places.'>CANON_PATH_GUARDUNC</a> = 1L &lt;&lt; 4,      <em class='comment'>/* Detect and preserve UNC paths: //server/... */</em>
<a id='L66' name='L66'></a>  66     <a href='../R/CANON_PATH_ALL.html' title='Multiple referred from 3 places.'>CANON_PATH_ALL</a> = <a href='../S/lib--util.h.html#L62' title='Defined at 62 in lib/util.h.'>CANON_PATH_JOINSLASHES</a>
<a id='L67' name='L67'></a>  67         | <a href='../S/lib--util.h.html#L63' title='Defined at 63 in lib/util.h.'>CANON_PATH_REMSLASHDOTS</a> | <a href='../S/lib--util.h.html#L64' title='Defined at 64 in lib/util.h.'>CANON_PATH_REMDOUBLEDOTS</a> | <a href='../S/lib--util.h.html#L65' title='Defined at 65 in lib/util.h.'>CANON_PATH_GUARDUNC</a>
<a id='L68' name='L68'></a>  68 <em class='brace'>}</em> <a href='../R/CANON_PATH_FLAGS.html' title='Multiple referred from 2 places.'>CANON_PATH_FLAGS</a>;
<a id='L69' name='L69'></a>  69 
<a id='L70' name='L70'></a>  70 <strong class='reserved'>enum</strong> <a href='../R/compression_type.html' title='Multiple referred from 2 places.'>compression_type</a>
<a id='L71' name='L71'></a>  71 <em class='brace'>{</em>
<a id='L72' name='L72'></a>  72     <a href='../R/COMPRESSION_NONE.html' title='Multiple referred from 8 places.'>COMPRESSION_NONE</a>,
<a id='L73' name='L73'></a>  73     <a href='../R/COMPRESSION_GZIP.html' title='Multiple referred from 4 places.'>COMPRESSION_GZIP</a>,
<a id='L74' name='L74'></a>  74     <a href='../R/COMPRESSION_BZIP.html' title='Multiple referred from 2 places.'>COMPRESSION_BZIP</a>,
<a id='L75' name='L75'></a>  75     <a href='../R/COMPRESSION_BZIP2.html' title='Multiple referred from 2 places.'>COMPRESSION_BZIP2</a>,
<a id='L76' name='L76'></a>  76     <a href='../R/COMPRESSION_LZIP.html' title='Multiple referred from 2 places.'>COMPRESSION_LZIP</a>,
<a id='L77' name='L77'></a>  77     <a href='../R/COMPRESSION_LZ4.html' title='Multiple referred from 2 places.'>COMPRESSION_LZ4</a>,
<a id='L78' name='L78'></a>  78     <a href='../R/COMPRESSION_LZMA.html' title='Multiple referred from 3 places.'>COMPRESSION_LZMA</a>,
<a id='L79' name='L79'></a>  79     <a href='../R/COMPRESSION_XZ.html' title='Multiple referred from 2 places.'>COMPRESSION_XZ</a>,
<a id='L80' name='L80'></a>  80     <a href='../R/COMPRESSION_ZSTD.html' title='Multiple referred from 2 places.'>COMPRESSION_ZSTD</a>,
<a id='L81' name='L81'></a>  81 <em class='brace'>}</em>;
<a id='L82' name='L82'></a>  82 
<a id='L83' name='L83'></a>  83 <em class='comment'>/* stdout or stderr stream of child process */</em>
<a id='L84' name='L84'></a>  84 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L85' name='L85'></a>  85 <em class='brace'>{</em>
<a id='L86' name='L86'></a>  86     <em class='comment'>/* file descriptor */</em>
<a id='L87' name='L87'></a>  87     <strong class='reserved'>int</strong> <a href='../Y/fd.html' title='Multiple used in 422 places.'>fd</a>;
<a id='L88' name='L88'></a>  88     <em class='comment'>/* data read from fd */</em>
<a id='L89' name='L89'></a>  89     <strong class='reserved'>char</strong> <a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>[<a href='../S/lib--util.h.html#L33' title='Defined at 33 in lib/util.h.'>MC_PIPE_BUFSIZE</a>];
<a id='L90' name='L90'></a>  90     <em class='comment'>/* positive: length of data in buf as before read as after;</em>
<a id='L91' name='L91'></a>  91 <em class='comment'>     * zero or negative before read: do not read drom fd;</em>
<a id='L92' name='L92'></a>  92 <em class='comment'>     * MC_PIPE_STREAM_EOF after read: EOF of fd;</em>
<a id='L93' name='L93'></a>  93 <em class='comment'>     * MC_PIPE_STREAM_UNREAD after read: there was not read from fd;</em>
<a id='L94' name='L94'></a>  94 <em class='comment'>     * MC_PIPE_ERROR_READ after read: reading error from fd.</em>
<a id='L95' name='L95'></a>  95 <em class='comment'>     */</em>
<a id='L96' name='L96'></a>  96     <a href='../Y/ssize_t.html' title='Multiple used in 151 places.'>ssize_t</a> <a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>;
<a id='L97' name='L97'></a>  97     <em class='comment'>/* whether buf is null-terminated or not */</em>
<a id='L98' name='L98'></a>  98     <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/null_term.html' title='Multiple used in 9 places.'>null_term</a>;
<a id='L99' name='L99'></a>  99     <em class='comment'>/* error code in case of len == MC_PIPE_ERROR_READ */</em>
<a id='L100' name='L100'></a> 100     <strong class='reserved'>int</strong> <a href='../Y/error.html' title='Multiple used in 229 places.'>error</a>;
<a id='L101' name='L101'></a> 101 <em class='brace'>}</em> <a href='../R/mc_pipe_stream_t.html' title='Multiple referred from 3 places.'>mc_pipe_stream_t</a>;
<a id='L102' name='L102'></a> 102 
<a id='L103' name='L103'></a> 103 <em class='comment'>/* Pipe descriptor for child process */</em>
<a id='L104' name='L104'></a> 104 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L105' name='L105'></a> 105 <em class='brace'>{</em>
<a id='L106' name='L106'></a> 106     <em class='comment'>/* PID of child process */</em>
<a id='L107' name='L107'></a> 107     GPid <a href='../Y/child_pid.html' title='Multiple used in 3 places.'>child_pid</a>;
<a id='L108' name='L108'></a> 108     <em class='comment'>/* stdout of child process */</em>
<a id='L109' name='L109'></a> 109     <a href='../S/lib--util.h.html#L101' title='Defined at 101 in lib/util.h.'>mc_pipe_stream_t</a> <a href='../Y/out.html' title='Multiple used in 200 places.'>out</a>;
<a id='L110' name='L110'></a> 110     <em class='comment'>/* stderr of child process */</em>
<a id='L111' name='L111'></a> 111     <a href='../S/lib--util.h.html#L101' title='Defined at 101 in lib/util.h.'>mc_pipe_stream_t</a> <a href='../Y/err.html' title='Multiple used in 82 places.'>err</a>;
<a id='L112' name='L112'></a> 112 <em class='brace'>}</em> <a href='../R/mc_pipe_t.html' title='Multiple referred from 13 places.'>mc_pipe_t</a>;
<a id='L113' name='L113'></a> 113 
<a id='L114' name='L114'></a> 114 <em class='comment'>/*** structures declarations (and typedefs of structures)*****************************************/</em>
<a id='L115' name='L115'></a> 115 
<a id='L116' name='L116'></a> 116 <em class='comment'>/* keys are set only during sorting */</em>
<a id='L117' name='L117'></a> 117 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L118' name='L118'></a> 118 <em class='brace'>{</em>
<a id='L119' name='L119'></a> 119     <em class='comment'>/* File attributes */</em>
<a id='L120' name='L120'></a> 120     <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/fnamelen.html' title='Multiple used in 20 places.'>fnamelen</a>;
<a id='L121' name='L121'></a> 121     <strong class='reserved'>char</strong> *<a href='../Y/fname.html' title='Multiple used in 348 places.'>fname</a>;
<a id='L122' name='L122'></a> 122     <strong class='reserved'>struct</strong> <a href='../Y/stat.html' title='Multiple used in 258 places.'>stat</a> <a href='../Y/st.html' title='Multiple used in 447 places.'>st</a>;
<a id='L123' name='L123'></a> 123     <em class='comment'>/* key used for comparing names */</em>
<a id='L124' name='L124'></a> 124     <strong class='reserved'>char</strong> *<a href='../Y/sort_key.html' title='Multiple used in 13 places.'>sort_key</a>;
<a id='L125' name='L125'></a> 125     <em class='comment'>/* key used for comparing extensions */</em>
<a id='L126' name='L126'></a> 126     <strong class='reserved'>char</strong> *<a href='../Y/second_sort_key.html' title='Multiple used in 13 places.'>second_sort_key</a>;
<a id='L127' name='L127'></a> 127 
<a id='L128' name='L128'></a> 128     <em class='comment'>/* Flags */</em>
<a id='L129' name='L129'></a> 129     <strong class='reserved'>struct</strong>
<a id='L130' name='L130'></a> 130     <em class='brace'>{</em>
<a id='L131' name='L131'></a> 131         <strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong> <a href='../Y/marked.html' title='Multiple used in 90 places.'>marked</a>:1;  <em class='comment'>/* File marked in pane window */</em>
<a id='L132' name='L132'></a> 132         <strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong> <a href='../Y/link_to_dir.html' title='Multiple used in 29 places.'>link_to_dir</a>:1;     <em class='comment'>/* If this is a link, does it point to directory? */</em>
<a id='L133' name='L133'></a> 133         <strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong> <a href='../Y/stale_link.html' title='Multiple used in 36 places.'>stale_link</a>:1;      <em class='comment'>/* If this is a symlink and points to Charon's land */</em>
<a id='L134' name='L134'></a> 134         <strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong> <a href='../Y/dir_size_computed.html' title='Multiple used in 11 places.'>dir_size_computed</a>:1;       <em class='comment'>/* Size of directory was computed with dirsizes_cmd */</em>
<a id='L135' name='L135'></a> 135     <em class='brace'>}</em> <a href='../Y/f.html' title='Multiple used in 407 places.'>f</a>;
<a id='L136' name='L136'></a> 136 <em class='brace'>}</em> <a href='../R/file_entry_t.html' title='Multiple referred from 107 places.'>file_entry_t</a>;
<a id='L137' name='L137'></a> 137 
<a id='L138' name='L138'></a> 138 <em class='comment'>/*** global variables defined in .c file *********************************************************/</em>
<a id='L139' name='L139'></a> 139 
<a id='L140' name='L140'></a> 140 <strong class='reserved'>extern</strong> <strong class='reserved'>struct</strong> <a href='../S/tests--lib--utilunix__my_system-common.c.html#L64' title='Defined at 64 in tests/lib/utilunix__my_system-common.c.'>sigaction</a> <a href='../Y/startup_handler.html' title='Multiple used in 6 places.'>startup_handler</a>;
<a id='L141' name='L141'></a> 141 
<a id='L142' name='L142'></a> 142 <em class='comment'>/*** declarations of public functions ************************************************************/</em>
<a id='L143' name='L143'></a> 143 
<a id='L144' name='L144'></a> 144 <strong class='reserved'>int</strong> <a href='../S/lib--util.c.html#L227' title='Defined at 227 in lib/util.c.'>is_printable</a> (<strong class='reserved'>int</strong> <a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>);
<a id='L145' name='L145'></a> 145 
<a id='L146' name='L146'></a> 146 <em class='comment'>/* Quote the filename for the purpose of inserting it into the command</em>
<a id='L147' name='L147'></a> 147 <em class='comment'> * line.  If quote_percent is 1, replace "%" with "%%" - the percent is</em>
<a id='L148' name='L148'></a> 148 <em class='comment'> * processed by the mc command line. */</em>
<a id='L149' name='L149'></a> 149 <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L253' title='Defined at 253 in lib/util.c.'>name_quote</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/quote_percent.html' title='Multiple used in 7 places.'>quote_percent</a>);
<a id='L150' name='L150'></a> 150 
<a id='L151' name='L151'></a> 151 <em class='comment'>/* returns a duplicate of c. */</em>
<a id='L152' name='L152'></a> 152 <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L312' title='Defined at 312 in lib/util.c.'>fake_name_quote</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/quote_percent.html' title='Multiple used in 7 places.'>quote_percent</a>);
<a id='L153' name='L153'></a> 153 
<a id='L154' name='L154'></a> 154 <em class='comment'>/* path_trunc() is the same as str_trunc() but</em>
<a id='L155' name='L155'></a> 155 <em class='comment'> * it deletes possible password from path for security</em>
<a id='L156' name='L156'></a> 156 <em class='comment'> * reasons. */</em>
<a id='L157' name='L157'></a> 157 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L326' title='Defined at 326 in lib/util.c.'>path_trunc</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/trunc_len.html' title='Multiple used in 3 places.'>trunc_len</a>);
<a id='L158' name='L158'></a> 158 
<a id='L159' name='L159'></a> 159 <em class='comment'>/* return a static string representing size, appending "K" or "M" for</em>
<a id='L160' name='L160'></a> 160 <em class='comment'> * big sizes.</em>
<a id='L161' name='L161'></a> 161 <em class='comment'> * NOTE: uses the same static buffer as size_trunc_sep. */</em>
<a id='L162' name='L162'></a> 162 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L345' title='Defined at 345 in lib/util.c.'>size_trunc</a> (<a href='../Y/uintmax_t.html' title='Multiple used in 86 places.'>uintmax_t</a> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/use_si.html' title='Multiple used in 16 places.'>use_si</a>);
<a id='L163' name='L163'></a> 163 
<a id='L164' name='L164'></a> 164 <em class='comment'>/* return a static string representing size, appending "K" or "M" for</em>
<a id='L165' name='L165'></a> 165 <em class='comment'> * big sizes. Separates every three digits by ",".</em>
<a id='L166' name='L166'></a> 166 <em class='comment'> * NOTE: uses the same static buffer as size_trunc. */</em>
<a id='L167' name='L167'></a> 167 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L375' title='Defined at 375 in lib/util.c.'>size_trunc_sep</a> (<a href='../Y/uintmax_t.html' title='Multiple used in 86 places.'>uintmax_t</a> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/use_si.html' title='Multiple used in 16 places.'>use_si</a>);
<a id='L168' name='L168'></a> 168 
<a id='L169' name='L169'></a> 169 <em class='comment'>/* Print file SIZE to BUFFER, but don't exceed LEN characters,</em>
<a id='L170' name='L170'></a> 170 <em class='comment'> * not including trailing 0. BUFFER should be at least LEN+1 long.</em>
<a id='L171' name='L171'></a> 171 <em class='comment'> *</em>
<a id='L172' name='L172'></a> 172 <em class='comment'> * Units: size units (0=bytes, 1=Kbytes, 2=Mbytes, etc.) */</em>
<a id='L173' name='L173'></a> 173 <strong class='reserved'>void</strong> <a href='../S/lib--util.c.html#L417' title='Defined at 417 in lib/util.c.'>size_trunc_len</a> (<strong class='reserved'>char</strong> *<a href='../Y/buffer.html' title='Multiple used in 1012 places.'>buffer</a>, <strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong> <a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>, <a href='../Y/uintmax_t.html' title='Multiple used in 86 places.'>uintmax_t</a> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>, <strong class='reserved'>int</strong> <a href='../Y/units.html' title='Multiple used in 5 places.'>units</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/use_si.html' title='Multiple used in 16 places.'>use_si</a>);
<a id='L174' name='L174'></a> 174 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L522' title='Defined at 522 in lib/util.c.'>string_perm</a> (<a href='../Y/mode_t.html' title='Multiple used in 103 places.'>mode_t</a> <a href='../Y/mode_bits.html' title='Multiple used in 22 places.'>mode_bits</a>);
<a id='L175' name='L175'></a> 175 
<a id='L176' name='L176'></a> 176 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L579' title='Defined at 579 in lib/util.c.'>extension</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L177' name='L177'></a> 177 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L684' title='Defined at 684 in lib/util.c.'>unix_error_string</a> (<strong class='reserved'>int</strong> <a href='../Y/error_num.html' title='Multiple used in 9 places.'>error_num</a>);
<a id='L178' name='L178'></a> 178 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L699' title='Defined at 699 in lib/util.c.'>skip_separators</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>);
<a id='L179' name='L179'></a> 179 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L713' title='Defined at 713 in lib/util.c.'>skip_numbers</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>);
<a id='L180' name='L180'></a> 180 <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L740' title='Defined at 740 in lib/util.c.'>strip_ctrl_codes</a> (<strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>);
<a id='L181' name='L181'></a> 181 
<a id='L182' name='L182'></a> 182 <em class='comment'>/* Replaces "\\E" and "\\e" with "\033". Replaces "^" + [a-z] with</em>
<a id='L183' name='L183'></a> 183 <em class='comment'> * ((char) 1 + (c - 'a')). The same goes for "^" + [A-Z].</em>
<a id='L184' name='L184'></a> 184 <em class='comment'> * Returns a newly allocated string. */</em>
<a id='L185' name='L185'></a> 185 <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L962' title='Defined at 962 in lib/util.c.'>convert_controls</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>);
<a id='L186' name='L186'></a> 186 
<a id='L187' name='L187'></a> 187 <em class='comment'>/* overwrites passwd with '\0's and frees it. */</em>
<a id='L188' name='L188'></a> 188 <strong class='reserved'>void</strong> <a href='../S/lib--util.c.html#L940' title='Defined at 940 in lib/util.c.'>wipe_password</a> (<strong class='reserved'>char</strong> *<a href='../Y/passwd.html' title='Multiple used in 88 places.'>passwd</a>);
<a id='L189' name='L189'></a> 189 
<a id='L190' name='L190'></a> 190 <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L1017' title='Defined at 1017 in lib/util.c.'>diff_two_paths</a> (<strong class='reserved'>const</strong> <a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> * <a href='../Y/vpath1.html' title='Multiple used in 76 places.'>vpath1</a>, <strong class='reserved'>const</strong> <a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> * <a href='../Y/vpath2.html' title='Multiple used in 72 places.'>vpath2</a>);
<a id='L191' name='L191'></a> 191 
<a id='L192' name='L192'></a> 192 <em class='comment'>/* Returns the basename of fname. The result is a pointer into fname. */</em>
<a id='L193' name='L193'></a> 193 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L650' title='Defined at 650 in lib/util.c.'>x_basename</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/fname.html' title='Multiple used in 348 places.'>fname</a>);
<a id='L194' name='L194'></a> 194 
<a id='L195' name='L195'></a> 195 <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L591' title='Defined at 591 in lib/util.c.'>load_mc_home_file</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/from.html' title='Multiple used in 162 places.'>from</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/filename.html' title='Multiple used in 178 places.'>filename</a>, <strong class='reserved'>char</strong> **<a href='../Y/allocated_filename.html' title='Multiple used in 4 places.'>allocated_filename</a>,
<a id='L196' name='L196'></a> 196                          <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/length.html' title='Multiple used in 226 places.'>length</a>);
<a id='L197' name='L197'></a> 197 
<a id='L198' name='L198'></a> 198 <em class='comment'>/* uid/gid managing */</em>
<a id='L199' name='L199'></a> 199 <strong class='reserved'>void</strong> init_groups (<strong class='reserved'>void</strong>);
<a id='L200' name='L200'></a> 200 <strong class='reserved'>void</strong> destroy_groups (<strong class='reserved'>void</strong>);
<a id='L201' name='L201'></a> 201 <strong class='reserved'>int</strong> <a href='../S/lib--utilunix.c.html#L1258' title='Defined at 1258 in lib/utilunix.c.'>get_user_permissions</a> (<strong class='reserved'>struct</strong> <a href='../Y/stat.html' title='Multiple used in 258 places.'>stat</a> *<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>);
<a id='L202' name='L202'></a> 202 
<a id='L203' name='L203'></a> 203 <strong class='reserved'>void</strong> init_uid_gid_cache (<strong class='reserved'>void</strong>);
<a id='L204' name='L204'></a> 204 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--utilunix.c.html#L315' title='Defined at 315 in lib/utilunix.c.'>get_group</a> (<a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> <a href='../Y/gid.html' title='Multiple used in 29 places.'>gid</a>);
<a id='L205' name='L205'></a> 205 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--utilunix.c.html#L287' title='Defined at 287 in lib/utilunix.c.'>get_owner</a> (<a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> <a href='../Y/uid.html' title='Multiple used in 41 places.'>uid</a>);
<a id='L206' name='L206'></a> 206 
<a id='L207' name='L207'></a> 207 <em class='comment'>/* Returns a copy of *s until a \n is found and is below top */</em>
<a id='L208' name='L208'></a> 208 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L633' title='Defined at 633 in lib/util.c.'>extract_line</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/top.html' title='Multiple used in 103 places.'>top</a>);
<a id='L209' name='L209'></a> 209 
<a id='L210' name='L210'></a> 210 <em class='comment'>/* Error pipes */</em>
<a id='L211' name='L211'></a> 211 <strong class='reserved'>void</strong> <a href='../S/lib--utilunix.c.html#L716' title='Defined at 716 in lib/utilunix.c.'>open_error_pipe</a> (<strong class='reserved'>void</strong>);
<a id='L212' name='L212'></a> 212 <strong class='reserved'>void</strong> check_error_pipe (<strong class='reserved'>void</strong>);
<a id='L213' name='L213'></a> 213 <strong class='reserved'>int</strong> <a href='../S/lib--utilunix.c.html#L773' title='Defined at 773 in lib/utilunix.c.'>close_error_pipe</a> (<strong class='reserved'>int</strong> <a href='../Y/error.html' title='Multiple used in 229 places.'>error</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L214' name='L214'></a> 214 
<a id='L215' name='L215'></a> 215 <em class='comment'>/* Process spawning */</em>
<a id='L216' name='L216'></a> 216 <strong class='reserved'>int</strong> <a href='../S/lib--utilunix.c.html#L380' title='Defined at 380 in lib/utilunix.c.'>my_system</a> (<strong class='reserved'>int</strong> <a href='../Y/flags.html' title='Multiple used in 420 places.'>flags</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/shell.html' title='Multiple used in 50 places.'>shell</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/command.html' title='Multiple used in 270 places.'>command</a>);
<a id='L217' name='L217'></a> 217 <strong class='reserved'>int</strong> <a href='../S/lib--utilunix.c.html#L400' title='Defined at 400 in lib/utilunix.c.'>my_systeml</a> (<strong class='reserved'>int</strong> <a href='../Y/flags.html' title='Multiple used in 420 places.'>flags</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/shell.html' title='Multiple used in 50 places.'>shell</a>, ...);
<a id='L218' name='L218'></a> 218 <strong class='reserved'>int</strong> <a href='../S/lib--utilunix.c.html#L433' title='Defined at 433 in lib/utilunix.c.'>my_systemv</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/command.html' title='Multiple used in 270 places.'>command</a>, <strong class='reserved'>char</strong> *<strong class='reserved'>const</strong> <a href='../Y/argv.html' title='Multiple used in 74 places.'>argv</a>[]);
<a id='L219' name='L219'></a> 219 <strong class='reserved'>int</strong> <a href='../S/lib--utilunix.c.html#L481' title='Defined at 481 in lib/utilunix.c.'>my_systemv_flags</a> (<strong class='reserved'>int</strong> <a href='../Y/flags.html' title='Multiple used in 420 places.'>flags</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/command.html' title='Multiple used in 270 places.'>command</a>, <strong class='reserved'>char</strong> *<strong class='reserved'>const</strong> <a href='../Y/argv.html' title='Multiple used in 74 places.'>argv</a>[]);
<a id='L220' name='L220'></a> 220 
<a id='L221' name='L221'></a> 221 <a href='../S/lib--util.h.html#L112' title='Defined at 112 in lib/util.h.'>mc_pipe_t</a> *<a href='../S/lib--utilunix.c.html#L512' title='Defined at 512 in lib/utilunix.c.'>mc_popen</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/command.html' title='Multiple used in 270 places.'>command</a>, <a href='../Y/GError.html' title='Multiple used in 175 places.'>GError</a> ** <a href='../Y/error.html' title='Multiple used in 229 places.'>error</a>);
<a id='L222' name='L222'></a> 222 <strong class='reserved'>void</strong> <a href='../S/lib--utilunix.c.html#L570' title='Defined at 570 in lib/utilunix.c.'>mc_pread</a> (<a href='../S/lib--util.h.html#L112' title='Defined at 112 in lib/util.h.'>mc_pipe_t</a> * <a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>, <a href='../Y/GError.html' title='Multiple used in 175 places.'>GError</a> ** <a href='../Y/error.html' title='Multiple used in 229 places.'>error</a>);
<a id='L223' name='L223'></a> 223 <strong class='reserved'>void</strong> <a href='../S/lib--utilunix.c.html#L634' title='Defined at 634 in lib/utilunix.c.'>mc_pclose</a> (<a href='../S/lib--util.h.html#L112' title='Defined at 112 in lib/util.h.'>mc_pipe_t</a> * <a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>, <a href='../Y/GError.html' title='Multiple used in 175 places.'>GError</a> ** <a href='../Y/error.html' title='Multiple used in 229 places.'>error</a>);
<a id='L224' name='L224'></a> 224 
<a id='L225' name='L225'></a> 225 <strong class='reserved'>void</strong> <a href='../D/my_exit.html' title='Multiple defined in 2 places.'>my_exit</a> (<strong class='reserved'>int</strong> <a href='../Y/status.html' title='Multiple used in 157 places.'>status</a>);
<a id='L226' name='L226'></a> 226 <strong class='reserved'>void</strong> <a href='../S/lib--utilunix.c.html#L346' title='Defined at 346 in lib/utilunix.c.'>save_stop_handler</a> (<strong class='reserved'>void</strong>);
<a id='L227' name='L227'></a> 227 
<a id='L228' name='L228'></a> 228 <em class='comment'>/* Tilde expansion */</em>
<a id='L229' name='L229'></a> 229 <strong class='reserved'>char</strong> *<a href='../S/lib--utilunix.c.html#L669' title='Defined at 669 in lib/utilunix.c.'>tilde_expand</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L230' name='L230'></a> 230 
<a id='L231' name='L231'></a> 231 <strong class='reserved'>void</strong> <a href='../S/lib--utilunix.c.html#L836' title='Defined at 836 in lib/utilunix.c.'>custom_canonicalize_pathname</a> (<strong class='reserved'>char</strong> *, <a href='../S/lib--util.h.html#L68' title='Defined at 68 in lib/util.h.'>CANON_PATH_FLAGS</a>);
<a id='L232' name='L232'></a> 232 <strong class='reserved'>void</strong> <a href='../S/lib--utilunix.c.html#L1059' title='Defined at 1059 in lib/utilunix.c.'>canonicalize_pathname</a> (<strong class='reserved'>char</strong> *);
<a id='L233' name='L233'></a> 233 
<a id='L234' name='L234'></a> 234 <strong class='reserved'>char</strong> *<a href='../S/lib--utilunix.c.html#L1079' title='Defined at 1079 in lib/utilunix.c.'>mc_realpath</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>, <strong class='reserved'>char</strong> *<a href='../Y/resolved_path.html' title='Multiple used in 10 places.'>resolved_path</a>);
<a id='L235' name='L235'></a> 235 
<a id='L236' name='L236'></a> 236 <em class='comment'>/* Looks for "magic" bytes at the start of the VFS file to guess the</em>
<a id='L237' name='L237'></a> 237 <em class='comment'> * compression type. Side effect: modifies the file position. */</em>
<a id='L238' name='L238'></a> 238 <strong class='reserved'>enum</strong> <a href='../S/lib--util.h.html#L70' title='Defined at 70 in lib/util.h.'>compression_type</a> <a href='../S/lib--util.c.html#L822' title='Defined at 822 in lib/util.c.'>get_compression_type</a> (<strong class='reserved'>int</strong> <a href='../Y/fd.html' title='Multiple used in 422 places.'>fd</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L239' name='L239'></a> 239 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L909' title='Defined at 909 in lib/util.c.'>decompress_extension</a> (<strong class='reserved'>int</strong> <a href='../Y/type.html' title='Multiple used in 300 places.'>type</a>);
<a id='L240' name='L240'></a> 240 
<a id='L241' name='L241'></a> 241 <a href='../Y/GList.html' title='Multiple used in 176 places.'>GList</a> *<a href='../S/lib--util.c.html#L1088' title='Defined at 1088 in lib/util.c.'>list_append_unique</a> (<a href='../Y/GList.html' title='Multiple used in 176 places.'>GList</a> * <a href='../Y/list.html' title='Multiple used in 429 places.'>list</a>, <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 945 places.'>text</a>);
<a id='L242' name='L242'></a> 242 
<a id='L243' name='L243'></a> 243 <em class='comment'>/* Position saving and restoring */</em>
<a id='L244' name='L244'></a> 244 <em class='comment'>/* Load position for the given filename */</em>
<a id='L245' name='L245'></a> 245 <strong class='reserved'>void</strong> <a href='../S/lib--util.c.html#L1128' title='Defined at 1128 in lib/util.c.'>load_file_position</a> (<strong class='reserved'>const</strong> <a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> * <a href='../Y/filename_vpath.html' title='Multiple used in 256 places.'>filename_vpath</a>, <strong class='reserved'>long</strong> *<a href='../Y/line.html' title='Multiple used in 305 places.'>line</a>, <strong class='reserved'>long</strong> *<a href='../Y/column.html' title='Multiple used in 29 places.'>column</a>,
<a id='L246' name='L246'></a> 246                          <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> * <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, <a href='../Y/GArray.html' title='Multiple used in 91 places.'>GArray</a> ** <a href='../Y/bookmarks.html' title='Multiple used in 14 places.'>bookmarks</a>);
<a id='L247' name='L247'></a> 247 <em class='comment'>/* Save position for the given filename */</em>
<a id='L248' name='L248'></a> 248 <strong class='reserved'>void</strong> <a href='../S/lib--util.c.html#L1219' title='Defined at 1219 in lib/util.c.'>save_file_position</a> (<strong class='reserved'>const</strong> <a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> * <a href='../Y/filename_vpath.html' title='Multiple used in 256 places.'>filename_vpath</a>, <strong class='reserved'>long</strong> <a href='../Y/line.html' title='Multiple used in 305 places.'>line</a>, <strong class='reserved'>long</strong> <a href='../Y/column.html' title='Multiple used in 29 places.'>column</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>,
<a id='L249' name='L249'></a> 249                          <a href='../Y/GArray.html' title='Multiple used in 91 places.'>GArray</a> * <a href='../Y/bookmarks.html' title='Multiple used in 14 places.'>bookmarks</a>);
<a id='L250' name='L250'></a> 250 
<a id='L251' name='L251'></a> 251 
<a id='L252' name='L252'></a> 252 <em class='comment'>/* if ch is in [A-Za-z], returns the corresponding control character,</em>
<a id='L253' name='L253'></a> 253 <em class='comment'> * else returns the argument. */</em>
<a id='L254' name='L254'></a> 254 <strong class='reserved'>extern</strong> <strong class='reserved'>int</strong> <a href='../S/lib--util.c.html#L1300' title='Defined at 1300 in lib/util.c.'>ascii_alpha_to_cntrl</a> (<strong class='reserved'>int</strong> <a href='../Y/ch.html' title='Multiple used in 229 places.'>ch</a>);
<a id='L255' name='L255'></a> 255 
<a id='L256' name='L256'></a> 256 <em class='sharp'>#undef</em> <a href='../R/Q_.html' title='Multiple referred from 75 places.'>Q_</a>
<a id='L257' name='L257'></a> 257 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../D/Q_.html' title='Multiple defined in 2 places.'>Q_</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>);
<a id='L258' name='L258'></a> 258 
<a id='L259' name='L259'></a> 259 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--util.c.html#L1324' title='Defined at 1324 in lib/util.c.'>mc_util_make_backup_if_possible</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L260' name='L260'></a> 260 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--util.c.html#L1355' title='Defined at 1355 in lib/util.c.'>mc_util_restore_from_backup_if_possible</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L261' name='L261'></a> 261 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--util.c.html#L1373' title='Defined at 1373 in lib/util.c.'>mc_util_unlink_backup_if_possible</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *);
<a id='L262' name='L262'></a> 262 
<a id='L263' name='L263'></a> 263 <strong class='reserved'>char</strong> *<a href='../D/guess_message_value.html' title='Multiple defined in 2 places.'>guess_message_value</a> (<strong class='reserved'>void</strong>);
<a id='L264' name='L264'></a> 264 
<a id='L265' name='L265'></a> 265 <strong class='reserved'>char</strong> *<a href='../S/lib--utilunix.c.html#L1366' title='Defined at 1366 in lib/utilunix.c.'>mc_build_filename</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/first_element.html' title='Multiple used in 19 places.'>first_element</a>, ...);
<a id='L266' name='L266'></a> 266 <strong class='reserved'>char</strong> *<a href='../S/lib--utilunix.c.html#L1309' title='Defined at 1309 in lib/utilunix.c.'>mc_build_filenamev</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/first_element.html' title='Multiple used in 19 places.'>first_element</a>, <a href='../Y/va_list.html' title='Multiple used in 43 places.'>va_list</a> <a href='../Y/args.html' title='Multiple used in 109 places.'>args</a>);
<a id='L267' name='L267'></a> 267 
<a id='L268' name='L268'></a> 268 <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../S/lib--util.c.html#L1441' title='Defined at 1441 in lib/util.c.'>mc_get_profile_root</a> (<strong class='reserved'>void</strong>);
<a id='L269' name='L269'></a> 269 
<a id='L270' name='L270'></a> 270 <em class='comment'>/* *INDENT-OFF* */</em>
<a id='L271' name='L271'></a> 271 <strong class='reserved'>void</strong> <a href='../R/mc_propagate_error.html' title='Multiple referred from 36 places.'>mc_propagate_error</a> (<a href='../Y/GError.html' title='Multiple used in 175 places.'>GError</a> ** <a href='../Y/dest.html' title='Multiple used in 126 places.'>dest</a>, <strong class='reserved'>int</strong> <a href='../Y/code.html' title='Multiple used in 120 places.'>code</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/format.html' title='Multiple used in 125 places.'>format</a>, ...) <a href='../D/G_GNUC_PRINTF.html' title='Multiple defined in 6 places.'>G_GNUC_PRINTF</a> (3, 4);
     <em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><a href='#L286'><img class='icon' src='../icons/right.png' alt='[next]' /></a><img class='icon' src='../icons/n_first.png' alt='[first]' /><a href='#L286'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+271 lib/util.h'  /> */</em>
<a id='L272' name='L272'></a> 272 <strong class='reserved'>void</strong> <a href='../S/lib--util.c.html#L1492' title='Defined at 1492 in lib/util.c.'>mc_replace_error</a> (<a href='../Y/GError.html' title='Multiple used in 175 places.'>GError</a> ** <a href='../Y/dest.html' title='Multiple used in 126 places.'>dest</a>, <strong class='reserved'>int</strong> <a href='../Y/code.html' title='Multiple used in 120 places.'>code</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/format.html' title='Multiple used in 125 places.'>format</a>, ...) <a href='../D/G_GNUC_PRINTF.html' title='Multiple defined in 6 places.'>G_GNUC_PRINTF</a> (3, 4);
<a id='L273' name='L273'></a> 273 <em class='comment'>/* *INDENT-ON* */</em>
<a id='L274' name='L274'></a> 274 
<a id='L275' name='L275'></a> 275 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--util.c.html#L1521' title='Defined at 1521 in lib/util.c.'>mc_time_elapsed</a> (<a href='../Y/gint64.html' title='Multiple used in 24 places.'>gint64</a> * <a href='../Y/timestamp.html' title='Multiple used in 20 places.'>timestamp</a>, <a href='../Y/gint64.html' title='Multiple used in 24 places.'>gint64</a> <a href='../Y/delay.html' title='Multiple used in 18 places.'>delay</a>);
<a id='L276' name='L276'></a> 276 
<a id='L277' name='L277'></a> 277 <em class='comment'>/*** inline functions **************************************************/</em>
<a id='L278' name='L278'></a> 278 
<a id='L279' name='L279'></a> 279 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L280' name='L280'></a> 280 <a href='../Y/exist_file.html' title='Multiple used in 38 places.'>exist_file</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>)
<a id='L281' name='L281'></a> 281 <em class='brace'>{</em>
<a id='L282' name='L282'></a> 282     <strong class='reserved'>return</strong> (<a href='../Y/access.html' title='Multiple used in 9 places.'>access</a> (<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>, R_OK) == 0);
<a id='L283' name='L283'></a> 283 <em class='brace'>}</em>
<a id='L284' name='L284'></a> 284 
<a id='L285' name='L285'></a> 285 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L286' name='L286'></a> 286 <a href='../R/is_exe.html' title='Multiple referred from 6 places.'>is_exe</a> (<a href='../Y/mode_t.html' title='Multiple used in 103 places.'>mode_t</a> <a href='../Y/mode.html' title='Multiple used in 239 places.'>mode</a>)
     <em class='comment'>/* <a href='#L271'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L271'><img class='icon' src='../icons/first.png' alt='[first]' /></a><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+286 lib/util.h'  /> */</em>
<a id='L287' name='L287'></a> 287 <em class='brace'>{</em>
<a id='L288' name='L288'></a> 288     <strong class='reserved'>return</strong> (<a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>) ((<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1392' title='Defined at 1392 in src/vfs/smbfs/helpers/include/smb.h.'>S_IXUSR</a> &amp; <a href='../Y/mode.html' title='Multiple used in 239 places.'>mode</a>) || (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1404' title='Defined at 1404 in src/vfs/smbfs/helpers/include/smb.h.'>S_IXGRP</a> &amp; <a href='../Y/mode.html' title='Multiple used in 239 places.'>mode</a>) || (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1416' title='Defined at 1416 in src/vfs/smbfs/helpers/include/smb.h.'>S_IXOTH</a> &amp; <a href='../Y/mode.html' title='Multiple used in 239 places.'>mode</a>));
<a id='L289' name='L289'></a> 289 <em class='brace'>}</em>
<a id='L290' name='L290'></a> 290 
<a id='L291' name='L291'></a> 291 <em class='sharp'>#endif</em> <em class='comment'>/* MC_UTIL_H */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L271'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L286'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+291 lib/util.h'  /> */</em>
</body>
</html>
